package com.skyz.wrap.entity.result;

import java.io.Serializable;
import java.util.List;

public class Order {

    /**
     * activityType :
     * bargainId : 0
     * cartInfo : [{"id":0,"info":{"attrValueId":0,"giveIntegral":0,"image":"","isReply":0,"isSub":true,"payNum":0,"price":0,"productId":0,"productName":"","productType":0,"sku":"","tempId":0,"vipPrice":0,"volume":0,"weight":0},"orderId":0,"productId":0,"unique":""}]
     * createTime :
     * deliveryId :
     * deliveryName :
     * deliveryType :
     * id : 0
     * offlinePayStatus : 0
     * orderId :
     * orderInfoList : [{"attrId":0,"cartNum":0,"image":"","isReply":0,"price":0,"productId":0,"sku":"","storeName":""}]
     * orderStatus :
     * paid : true
     * payPostage : 0
     * payPrice : 0
     * payTime :
     * pinkId : 0
     * refundStatus : 0
     * shippingType : 0
     * status : 0
     * statusPic :
     * storeId : 0
     * storeOrder : {"backIntegral":0,"bargainId":0,"bargainUserId":0,"beforePayPrice":0,"clerkId":0,"combinationId":0,"cost":0,"couponId":0,"couponPrice":0,"createTime":"","deductionPrice":0,"deliveryCode":"","deliveryId":"","deliveryName":"","deliveryType":"","freightPrice":0,"gainIntegral":0,"id":0,"isAlterPrice":true,"isChannel":0,"isDel":true,"isMerCheck":0,"isRemind":true,"isSystemDel":true,"mark":"","merId":0,"orderId":"","outTradeNo":"","paid":true,"payPostage":0,"payPrice":0,"payTime":"","payType":"","pinkId":0,"proTotalPrice":0,"realName":"","refundPrice":0,"refundReason":"","refundReasonTime":"","refundReasonWap":"","refundReasonWapExplain":"","refundReasonWapImg":"","refundStatus":0,"remark":"","seckillId":0,"shippingType":0,"status":0,"storeId":0,"totalNum":0,"totalPostage":0,"totalPrice":0,"type":0,"uid":0,"updateTime":"","useIntegral":0,"userAddress":"","userPhone":"","verifyCode":""}
     * totalNum : 0
     * type : 0
     * verifyCode :
     */

    private String activityType;
    private int bargainId;
    private String createTime;
    private String deliveryId;
    private String deliveryName;
    private String deliveryType;
    private int id;
    private int offlinePayStatus;
    private String orderId;
    private String orderStatus;
    private boolean paid;
    private String payPostage;
    private String payPrice;
    private String payTime;
    private int pinkId;
    private int refundStatus;
    private int shippingType;
    private int status;
    private String statusPic;
    private int storeId;
    private StoreOrderBean storeOrder;
    private int totalNum;
    private int type;
    private String verifyCode;
    private List<CartInfoBean> cartInfo;
    private List<OrderInfoListBean> orderInfoList;

    public String getActivityType() {
        return activityType;
    }

    public boolean hidActivityType() {
        return "普通".equals(activityType)||"核销".equals(activityType);
    }

    public void setActivityType(String activityType) {
        this.activityType = activityType;
    }

    public int getBargainId() {
        return bargainId;
    }

    public void setBargainId(int bargainId) {
        this.bargainId = bargainId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDeliveryId() {
        return deliveryId;
    }

    public void setDeliveryId(String deliveryId) {
        this.deliveryId = deliveryId;
    }

    public String getDeliveryName() {
        return deliveryName;
    }

    public void setDeliveryName(String deliveryName) {
        this.deliveryName = deliveryName;
    }

    public String getDeliveryType() {
        return deliveryType;
    }

    public void setDeliveryType(String deliveryType) {
        this.deliveryType = deliveryType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOfflinePayStatus() {
        return offlinePayStatus;
    }

    public void setOfflinePayStatus(int offlinePayStatus) {
        this.offlinePayStatus = offlinePayStatus;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public boolean isPaid() {
        return paid;
    }

    public void setPaid(boolean paid) {
        this.paid = paid;
    }

    public String getPayPostage() {
        return payPostage;
    }

    public void setPayPostage(String payPostage) {
        this.payPostage = payPostage;
    }

    public String getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(String payPrice) {
        this.payPrice = payPrice;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public int getPinkId() {
        return pinkId;
    }

    public void setPinkId(int pinkId) {
        this.pinkId = pinkId;
    }

    public int getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(int refundStatus) {
        this.refundStatus = refundStatus;
    }

    public int getShippingType() {
        return shippingType;
    }

    public void setShippingType(int shippingType) {
        this.shippingType = shippingType;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusPic() {
        return statusPic;
    }

    public void setStatusPic(String statusPic) {
        this.statusPic = statusPic;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public StoreOrderBean getStoreOrder() {
        return storeOrder;
    }

    public void setStoreOrder(StoreOrderBean storeOrder) {
        this.storeOrder = storeOrder;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public List<CartInfoBean> getCartInfo() {
        return cartInfo;
    }

    public void setCartInfo(List<CartInfoBean> cartInfo) {
        this.cartInfo = cartInfo;
    }

    public List<OrderInfoListBean> getOrderInfoList() {
        return orderInfoList;
    }

    public void setOrderInfoList(List<OrderInfoListBean> orderInfoList) {
        this.orderInfoList = orderInfoList;
    }
   //订单状态（0：待发货；1：待收货；2：已收货，待评价；3：已完成；）
    public boolean showDetail() {
       return paid&&(status ==0 || status ==1 || status ==3);
    }

    public static class StoreOrderBean {
        /**
         * backIntegral : 0
         * bargainId : 0
         * bargainUserId : 0
         * beforePayPrice : 0
         * clerkId : 0
         * combinationId : 0
         * cost : 0
         * couponId : 0
         * couponPrice : 0
         * createTime :
         * deductionPrice : 0
         * deliveryCode :
         * deliveryId :
         * deliveryName :
         * deliveryType :
         * freightPrice : 0
         * gainIntegral : 0
         * id : 0
         * isAlterPrice : true
         * isChannel : 0
         * isDel : true
         * isMerCheck : 0
         * isRemind : true
         * isSystemDel : true
         * mark :
         * merId : 0
         * orderId :
         * outTradeNo :
         * paid : true
         * payPostage : 0
         * payPrice : 0
         * payTime :
         * payType :
         * pinkId : 0
         * proTotalPrice : 0
         * realName :
         * refundPrice : 0
         * refundReason :
         * refundReasonTime :
         * refundReasonWap :
         * refundReasonWapExplain :
         * refundReasonWapImg :
         * refundStatus : 0
         * remark :
         * seckillId : 0
         * shippingType : 0
         * status : 0
         * storeId : 0
         * totalNum : 0
         * totalPostage : 0
         * totalPrice : 0
         * type : 0
         * uid : 0
         * updateTime :
         * useIntegral : 0
         * userAddress :
         * userPhone :
         * verifyCode :
         */

        private int backIntegral;
        private int bargainId;
        private int bargainUserId;
        private String beforePayPrice;
        private int clerkId;
        private int combinationId;
        private int cost;
        private int couponId;
        private int couponPrice;
        private String createTime;
        private String deductionPrice;
        private String deliveryCode;
        private String deliveryId;
        private String deliveryName;
        private String deliveryType;
        private String freightPrice;
        private int gainIntegral;
        private int id;
        private boolean isAlterPrice;
        private int isChannel;
        private boolean isDel;
        private int isMerCheck;
        private boolean isRemind;
        private boolean isSystemDel;
        private String mark;
        private int merId;
        private String orderId;
        private String outTradeNo;
        private boolean paid;
        private String payPostage;
        private String payPrice;
        private String payTime;
        private String payType;
        private int pinkId;
        private int proTotalPrice;
        private String realName;
        private int refundPrice;
        private String refundReason;
        private String refundReasonTime;
        private String refundReasonWap;
        private String refundReasonWapExplain;
        private String refundReasonWapImg;
        private int refundStatus;
        private String remark;
        private int seckillId;
        private int shippingType;
        private int status;
        private int storeId;
        private int totalNum;
        private int totalPostage;
        private String totalPrice;
        private int type;
        private int uid;
        private String updateTime;
        private int useIntegral;
        private String userAddress;
        private String userPhone;
        private String verifyCode;

        public int getBackIntegral() {
            return backIntegral;
        }

        public void setBackIntegral(int backIntegral) {
            this.backIntegral = backIntegral;
        }

        public int getBargainId() {
            return bargainId;
        }

        public void setBargainId(int bargainId) {
            this.bargainId = bargainId;
        }

        public int getBargainUserId() {
            return bargainUserId;
        }

        public void setBargainUserId(int bargainUserId) {
            this.bargainUserId = bargainUserId;
        }

        public String getBeforePayPrice() {
            return beforePayPrice;
        }

        public void setBeforePayPrice(String beforePayPrice) {
            this.beforePayPrice = beforePayPrice;
        }

        public int getClerkId() {
            return clerkId;
        }

        public void setClerkId(int clerkId) {
            this.clerkId = clerkId;
        }

        public int getCombinationId() {
            return combinationId;
        }

        public void setCombinationId(int combinationId) {
            this.combinationId = combinationId;
        }

        public int getCost() {
            return cost;
        }

        public void setCost(int cost) {
            this.cost = cost;
        }

        public int getCouponId() {
            return couponId;
        }

        public void setCouponId(int couponId) {
            this.couponId = couponId;
        }

        public int getCouponPrice() {
            return couponPrice;
        }

        public void setCouponPrice(int couponPrice) {
            this.couponPrice = couponPrice;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getDeductionPrice() {
            return deductionPrice;
        }

        public void setDeductionPrice(String deductionPrice) {
            this.deductionPrice = deductionPrice;
        }

        public String getDeliveryCode() {
            return deliveryCode;
        }

        public void setDeliveryCode(String deliveryCode) {
            this.deliveryCode = deliveryCode;
        }

        public String getDeliveryId() {
            return deliveryId;
        }

        public void setDeliveryId(String deliveryId) {
            this.deliveryId = deliveryId;
        }

        public String getDeliveryName() {
            return deliveryName;
        }

        public void setDeliveryName(String deliveryName) {
            this.deliveryName = deliveryName;
        }

        public String getDeliveryType() {
            return deliveryType;
        }

        public void setDeliveryType(String deliveryType) {
            this.deliveryType = deliveryType;
        }

        public String getFreightPrice() {
            return freightPrice;
        }

        public void setFreightPrice(String freightPrice) {
            this.freightPrice = freightPrice;
        }

        public int getGainIntegral() {
            return gainIntegral;
        }

        public void setGainIntegral(int gainIntegral) {
            this.gainIntegral = gainIntegral;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public boolean isIsAlterPrice() {
            return isAlterPrice;
        }

        public void setIsAlterPrice(boolean isAlterPrice) {
            this.isAlterPrice = isAlterPrice;
        }

        public int getIsChannel() {
            return isChannel;
        }

        public void setIsChannel(int isChannel) {
            this.isChannel = isChannel;
        }

        public boolean isIsDel() {
            return isDel;
        }

        public void setIsDel(boolean isDel) {
            this.isDel = isDel;
        }

        public int getIsMerCheck() {
            return isMerCheck;
        }

        public void setIsMerCheck(int isMerCheck) {
            this.isMerCheck = isMerCheck;
        }

        public boolean isIsRemind() {
            return isRemind;
        }

        public void setIsRemind(boolean isRemind) {
            this.isRemind = isRemind;
        }

        public boolean isIsSystemDel() {
            return isSystemDel;
        }

        public void setIsSystemDel(boolean isSystemDel) {
            this.isSystemDel = isSystemDel;
        }

        public String getMark() {
            return mark;
        }

        public void setMark(String mark) {
            this.mark = mark;
        }

        public int getMerId() {
            return merId;
        }

        public void setMerId(int merId) {
            this.merId = merId;
        }

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }

        public String getOutTradeNo() {
            return outTradeNo;
        }

        public void setOutTradeNo(String outTradeNo) {
            this.outTradeNo = outTradeNo;
        }

        public boolean isPaid() {
            return paid;
        }

        public void setPaid(boolean paid) {
            this.paid = paid;
        }

        public String getPayPostage() {
            return payPostage;
        }

        public void setPayPostage(String payPostage) {
            this.payPostage = payPostage;
        }

        public String getPayPrice() {
            return payPrice;
        }

        public void setPayPrice(String payPrice) {
            this.payPrice = payPrice;
        }

        public String getPayTime() {
            return payTime;
        }

        public void setPayTime(String payTime) {
            this.payTime = payTime;
        }

        public String getPayType() {
            return payType;
        }

        public void setPayType(String payType) {
            this.payType = payType;
        }

        public int getPinkId() {
            return pinkId;
        }

        public void setPinkId(int pinkId) {
            this.pinkId = pinkId;
        }

        public int getProTotalPrice() {
            return proTotalPrice;
        }

        public void setProTotalPrice(int proTotalPrice) {
            this.proTotalPrice = proTotalPrice;
        }

        public String getRealName() {
            return realName;
        }

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public int getRefundPrice() {
            return refundPrice;
        }

        public void setRefundPrice(int refundPrice) {
            this.refundPrice = refundPrice;
        }

        public String getRefundReason() {
            return refundReason;
        }

        public void setRefundReason(String refundReason) {
            this.refundReason = refundReason;
        }

        public String getRefundReasonTime() {
            return refundReasonTime;
        }

        public void setRefundReasonTime(String refundReasonTime) {
            this.refundReasonTime = refundReasonTime;
        }

        public String getRefundReasonWap() {
            return refundReasonWap;
        }

        public void setRefundReasonWap(String refundReasonWap) {
            this.refundReasonWap = refundReasonWap;
        }

        public String getRefundReasonWapExplain() {
            return refundReasonWapExplain;
        }

        public void setRefundReasonWapExplain(String refundReasonWapExplain) {
            this.refundReasonWapExplain = refundReasonWapExplain;
        }

        public String getRefundReasonWapImg() {
            return refundReasonWapImg;
        }

        public void setRefundReasonWapImg(String refundReasonWapImg) {
            this.refundReasonWapImg = refundReasonWapImg;
        }

        public int getRefundStatus() {
            return refundStatus;
        }

        public void setRefundStatus(int refundStatus) {
            this.refundStatus = refundStatus;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public int getSeckillId() {
            return seckillId;
        }

        public void setSeckillId(int seckillId) {
            this.seckillId = seckillId;
        }

        public int getShippingType() {
            return shippingType;
        }

        public void setShippingType(int shippingType) {
            this.shippingType = shippingType;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getStoreId() {
            return storeId;
        }

        public void setStoreId(int storeId) {
            this.storeId = storeId;
        }

        public int getTotalNum() {
            return totalNum;
        }

        public void setTotalNum(int totalNum) {
            this.totalNum = totalNum;
        }

        public int getTotalPostage() {
            return totalPostage;
        }

        public void setTotalPostage(int totalPostage) {
            this.totalPostage = totalPostage;
        }

        public String getTotalPrice() {
            return totalPrice;
        }

        public void setTotalPrice(String totalPrice) {
            this.totalPrice = totalPrice;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public int getUseIntegral() {
            return useIntegral;
        }

        public void setUseIntegral(int useIntegral) {
            this.useIntegral = useIntegral;
        }

        public String getUserAddress() {
            return userAddress;
        }

        public void setUserAddress(String userAddress) {
            this.userAddress = userAddress;
        }

        public String getUserPhone() {
            return userPhone;
        }

        public void setUserPhone(String userPhone) {
            this.userPhone = userPhone;
        }

        public String getVerifyCode() {
            return verifyCode;
        }

        public void setVerifyCode(String verifyCode) {
            this.verifyCode = verifyCode;
        }
    }

    public static class CartInfoBean {
        /**
         * id : 0
         * info : {"attrValueId":0,"giveIntegral":0,"image":"","isReply":0,"isSub":true,"payNum":0,"price":0,"productId":0,"productName":"","productType":0,"sku":"","tempId":0,"vipPrice":0,"volume":0,"weight":0}
         * orderId : 0
         * productId : 0
         * unique :
         */

        private int id;
        private InfoBean info;
        private int orderId;
        private int productId;
        private String unique;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public InfoBean getInfo() {
            return info;
        }

        public void setInfo(InfoBean info) {
            this.info = info;
        }

        public int getOrderId() {
            return orderId;
        }

        public void setOrderId(int orderId) {
            this.orderId = orderId;
        }

        public int getProductId() {
            return productId;
        }

        public void setProductId(int productId) {
            this.productId = productId;
        }

        public String getUnique() {
            return unique;
        }

        public void setUnique(String unique) {
            this.unique = unique;
        }

        public static class InfoBean {
            /**
             * attrValueId : 0
             * giveIntegral : 0
             * image :
             * isReply : 0
             * isSub : true
             * payNum : 0
             * price : 0
             * productId : 0
             * productName :
             * productType : 0
             * sku :
             * tempId : 0
             * vipPrice : 0
             * volume : 0
             * weight : 0
             */

            private int attrValueId;
            private int giveIntegral;
            private String image;
            private int isReply;
            private boolean isSub;
            private int payNum;
            private int price;
            private int productId;
            private String productName;
            private int productType;
            private String sku;
            private int tempId;
            private int vipPrice;
            private int volume;
            private int weight;

            public int getAttrValueId() {
                return attrValueId;
            }

            public void setAttrValueId(int attrValueId) {
                this.attrValueId = attrValueId;
            }

            public int getGiveIntegral() {
                return giveIntegral;
            }

            public void setGiveIntegral(int giveIntegral) {
                this.giveIntegral = giveIntegral;
            }

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public int getIsReply() {
                return isReply;
            }

            public void setIsReply(int isReply) {
                this.isReply = isReply;
            }

            public boolean isIsSub() {
                return isSub;
            }

            public void setIsSub(boolean isSub) {
                this.isSub = isSub;
            }

            public int getPayNum() {
                return payNum;
            }

            public void setPayNum(int payNum) {
                this.payNum = payNum;
            }

            public int getPrice() {
                return price;
            }

            public void setPrice(int price) {
                this.price = price;
            }

            public int getProductId() {
                return productId;
            }

            public void setProductId(int productId) {
                this.productId = productId;
            }

            public String getProductName() {
                return productName;
            }

            public void setProductName(String productName) {
                this.productName = productName;
            }

            public int getProductType() {
                return productType;
            }

            public void setProductType(int productType) {
                this.productType = productType;
            }

            public String getSku() {
                return sku;
            }

            public void setSku(String sku) {
                this.sku = sku;
            }

            public int getTempId() {
                return tempId;
            }

            public void setTempId(int tempId) {
                this.tempId = tempId;
            }

            public int getVipPrice() {
                return vipPrice;
            }

            public void setVipPrice(int vipPrice) {
                this.vipPrice = vipPrice;
            }

            public int getVolume() {
                return volume;
            }

            public void setVolume(int volume) {
                this.volume = volume;
            }

            public int getWeight() {
                return weight;
            }

            public void setWeight(int weight) {
                this.weight = weight;
            }
        }
    }

    public static class OrderInfoListBean implements Serializable {
        /**
         * attrId : 0
         * cartNum : 0
         * image :
         * isReply : 0
         * price : 0
         * productId : 0
         * sku :
         * storeName :
         */

        private int attrId;
        private int cartNum;
        private String image;
        private int isReply;
        private String price;
        private int productId;
        private String sku;
        private String storeName;

        public int getAttrId() {
            return attrId;
        }

        public void setAttrId(int attrId) {
            this.attrId = attrId;
        }

        public int getCartNum() {
            return cartNum;
        }

        public void setCartNum(int cartNum) {
            this.cartNum = cartNum;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public int getIsReply() {
            return isReply;
        }

        public void setIsReply(int isReply) {
            this.isReply = isReply;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public int getProductId() {
            return productId;
        }

        public void setProductId(int productId) {
            this.productId = productId;
        }

        public String getSku() {
            return sku;
        }

        public void setSku(String sku) {
            this.sku = sku;
        }

        public String getStoreName() {
            return storeName;
        }

        public void setStoreName(String storeName) {
            this.storeName = storeName;
        }
    }
}
